﻿<Window x:Class="Rule18.HotkeyChangeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Assign new hotkey" ShowInTaskbar="False" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="163" Width="686" KeyDown="Window_KeyDown" Topmost="True">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="White" Offset="0" />
            <GradientStop Color="White" Offset="1" />
            <GradientStop Color="#FF6F6F6F" Offset="0.762" />
        </LinearGradientBrush>
    </Window.Background>
    <StackPanel>
        <TextBlock Margin="2" Name="PressingTextBlock" Text="Press some keys to begin" Foreground="#FF005ACE" HorizontalAlignment="Center" FontSize="24" Width="{Binding ElementName=RootPanel, Path=ActualWidth}" TextAlignment="Center" />
        <TextBlock Margin="2" Text="Note: You must use a modifier key (Ctrl, Alt or Shift) in your combination with a number or letter.
Shift cannot be used by itself as a modifier.
You will not be able to use hotkeys already in use." TextWrapping="Wrap" />
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="2">
            <Button Content="Cancel" Name="CancelButton" Width="75" Margin="2" IsCancel="True"/>
            <Button Content="OK" Name="OKButton" Width="75" Margin="2" IsDefault="True" IsEnabled="False" Click="OKButton_Click" />
        </StackPanel>

    </StackPanel>
</Window>
